<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // document.write('来旅梦，去名企');
        // 创建对象
        let ljj = {
            habbies: ['羽毛球','干饭'],
            name: '李家君',
            sex: '男',
            hometwom: '鄱阳',
            college: '东华理工大学',
            room: '930',
            issingle: true,
            age: 18,
            beauty: 70,
            sendFlower(target) {
            target.receiveFlower(yjq)
            }
        }
        let xh = {
            name: '小红',
            xq: 50,
            receiveFlower(sender) {
                if(sender.beauty<90) {
                    console.log('不好意思，你是个好人');
                }
                else{
                    console.log('万达走一波');
                }
                if (this.xq<80){
                    console.log('go');
                }else{
                    console.log('let`s go');
                }
            // console.log('收到了'+sender.name+'送的花');
            }
        }
        let xm = {
            name: '小美',
            hometwom: '封城',
            receiveFlower(sender) {
                console.log('君君，我们在一起吧。');
               xh.receiveFlower(sender)
              console.log('收到了'+sender.name+'送的花');
            }  
        }
        setTimeout(() => {
                xh.xq=80;
                xh.receiveFlower(sender)
            }, 3000);
        //  let num; 未定义 值未定义，在内存中的分配未确定 
        // console.log(num);
        // num=1;
        // let a = null;
    </script>  
</body>
</html>